package com.casic.ops.service.api.pipeline;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.casic.ops.entity.dto.pipeline.PipelineNodeLoggerDTO;
import com.casic.ops.entity.dto.pipeline.datastructure.Logger.NodeLogger;
import com.casic.ops.entity.request.pipeline.CommonPageRequest;
import com.casic.ops.entity.request.pipeline.PipelineNodeLoggerRequest;
import com.casic.ops.entity.vo.pipeline.response.MultiResponse;
import com.casic.ops.entity.vo.pipeline.response.PageResponse;
import com.casic.ops.entity.vo.pipeline.response.Response;
import com.casic.ops.entity.vo.pipeline.response.SingleResponse;


/**
 * 流水线节点执行记录服务
 * @author cww
 * @date 2022/6/17
 */
public interface PipelineNodeLoggerService {
    Response add(PipelineNodeLoggerRequest pipelineNodeLoggerRequest);
    Response update(PipelineNodeLoggerRequest pipelineNodeLoggerRequest);
    Response delete(Long[] ids);
    SingleResponse<PipelineNodeLoggerDTO> getById(Long id);
    MultiResponse<PipelineNodeLoggerDTO> list();
    PageResponse<PipelineNodeLoggerDTO> page(CommonPageRequest request);
    //以下两个方法实现的真的很烂，不好搬过来，先这么写着
    public NodeLogger getByLoggerUUIDAndNodeUUID(String loggerUUID, String nodeUUID);
    public void insertByNodeLogger(NodeLogger nodeLogger);
    public void updateByNodeLogger(NodeLogger nodeLogger);
}
